import request from '@/utils/request';

export async function searchShortcutList(params) {
  return request('/esApi/workTsk/listFunction', {
    method: 'POST',
    body: params,
  });
}

export async function searchWaitTask() {
  return request('/esApi/workTsk/queryWorkTsk', {
    method: 'POST',
  });
}

export async function searchNotice() {
  return request('/esApi/workTsk/queryCorpNotice', {
    method: 'POST',
  });
}

export async function searchFunParams() {
  return request('/esApi/workTsk/queryFunPerms', {
    method: 'POST',
  });
}

export async function addFunction(params) {
  return request('/esApi/workTsk/addFunction', {
    method: 'POST',
    body: params,
  });
}
